[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-27 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 25.04.2024 um 10:24: hi! I'm new to ConTeXt. I want to define a command with sidenote function. This [setupsidenote] command inherits the options of [setupmargindata], [setupcounter] and [setupframed]. just like [setupenumeration] inherits the option

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-26 Thread Bruce Horrocks
re is no way to "inherit" functionality. You still need to write \setupsidenote to call \setupcounter, \setupframed at the right points to achieve the right effects. What you can do is have \setupsidenote accept all options in one big long list and then pass the ones that apply to se

[NTG-context] Define a new command that inherits from multiple other command options

2024-04-25 Thread ai2472206007
hi! I'm new to ConTeXt. I want to define a command with sidenote function. This [setupsidenote] command inherits the options of [setupmargindata], [setupcounter] and [setupframed]. just like [setupenumeration] inherits the option of [setupcounter]. I've defined the following sidenote command

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Jeroen
I have been able to achieve it as following, but the first frame width is fixed so will cause problems with other chapter numbers such as VIII \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=.5em,frame=off] \tbox{\framed[width=22mm,align=right]{#1}}% \tbox

[NTG-context] Re: \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Jim
On Sat, Jan 27, 2024 at 19:12 (+0100), Pablo Rodriguez via ntg-context wrote: > On 1/27/24 17:44, Jim wrote: >> The wiki page for \setupexternalfigure says >> "Show frame around image. Most(?) options of \setupframed are usable!" Hi Pablo, > I’m afraid that this

[NTG-context] Re: \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Pablo Rodriguez via ntg-context
On 1/27/24 17:44, Jim wrote: > The wiki page for \setupexternalfigure says > "Show frame around image. Most(?) options of \setupframed are usable!" Hi Jim, I’m afraid that this is a too generous statement. https://www.pragma-ade.com/general/qrcs/setup-en.pdf#page=218

[NTG-context] \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Jim
The wiki page for \setupexternalfigure says "Show frame around image. Most(?) options of \setupframed are usable!" I tried to put a frame around a picture (using \externalfigure with frame=on) but I didn't get the frame to play nicely (see example below). I can get the frame wh

[NTG-context] framed: rounded corner oddity

2023-12-05 Thread Henning Hraban Ramm
the code that works on its own, but causes the results as shown in the attachments within my book. There’s nowhere a \setupframed, and nothing that should influence MetaPost. Do you have any clue for what I should look? Hraban \starttext \framed[ rulethickness=1pt, offset=0.5em

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Fabrice Couvreur
ic expression, it is sometimes interesting to cross out > terms. With LaTeX, there is the \cancel command from the package cancel. Is > there an equivalent with conTeXt ? > > Thanks > > Fabrice > > I don't know what the cancel package gives, but since December 22 or > so, on

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Mikael Sundqvist
ce I don't know what the cancel package gives, but since December 22 or so, one can do \starttext \setupframed [mathstrikeout] [color=darkgreen, backgroundcolor=darkred, frame=off] \startTEXpage[offset=4dk,align=flushleft] \dm{1+\mathstrikeout[strike:text={what is this?}]{(2x-x)}+2=3+x} \blank

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Aditya Mahajan via ntg-context
ee: https://wiki.contextgarden.net/Command/setupframed Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-contex

[NTG-context] Custom TOC with makeup and setups

2023-05-10 Thread Jethro Djan via ntg-context
] [renderingsetup=list:toclist] \setupheadtext[section=Table of Contents] \startsetups toclist \framed[align=normal, frame=off]{\placelist [section] [criterium=all, alternative=toclist]} \stopsetups \definehspace[tspace][4cm] \setupframed[ height=fit, width=fit, location=middle, frame

Re: [NTG-context] rotated headers in natural tables

2023-03-15 Thread Bruce Horrocks via ntg-context
\setupTABLE inherits from \setupframed which has an orientation option. So \bTR[orientation=90] on the header row should do it, with the content specified normally i.e. without using \RtH. A quick test on one of my tables showed some issues with alignment so you may need to fix the 'width

Re: [NTG-context] A corner case relating to corners!

2023-02-05 Thread Hans Hagen via ntg-context
On 2/4/2023 1:42 PM, Bruce Horrocks via ntg-context wrote: In the Wiki <https://wiki.contextgarden.net/Command/setupframed> the examples for corner styles 00 - 09 no longer work and the single digit values 0 - 9 need to be used instead. (Styles 10 upwards continue to work as per th

[NTG-context] A corner case relating to corners!

2023-02-04 Thread Bruce Horrocks via ntg-context
In the Wiki <https://wiki.contextgarden.net/Command/setupframed> the examples for corner styles 00 - 09 no longer work and the single digit values 0 - 9 need to be used instead. (Styles 10 upwards continue to work as per the page.) Is this a deliberate change and the Wiki needs to be u

[NTG-context] parameters of (setup)externalfigure, conversions etc.

2022-08-11 Thread Henning Hraban Ramm via ntg-context
te? * hfactor/wfactor: When do these make sense? (I know factor) I accidentally learned that I can use parameters of \framed, but the inheritance from \setupframed is not explicit – some are mentioned, like backgroundcolor, others n

[NTG-context] three suggestions for the statistical-charts module

2022-01-17 Thread Pablo Rodriguez via ntg-context
Hi Tamara, Adriana and Tomáš, this is my first sample using statistical-charts (I attach the CSV file): \setupbodyfont[helvetica] \usemodule[statistical-charts] \starttext \setupframed[dotslabels][loffset=1.1cc, boffset=0.4cc] \linechart[basic][yscale=.25, xscale=1

Re: [NTG-context] Multiline cell in spreadsheettable

2021-11-19 Thread Henning Hraban Ramm via ntg-context
Am 19.11.21 um 08:48 schrieb juh via ntg-context: And in https://wiki.contextgarden.net/Command/setupTABLE the parameter width is not mentioned at all. Because it inherits from \setupframed where all these parameters are declared. I would like to improve the wiki, any hint where a hint

Re: [NTG-context] footnote not appearing

2021-07-28 Thread jbf via ntg-context
: Is there any reason why the following MWE does not produce the footnote at the bottom of the page? It seems like the use of framedtext is preventing it, but am not sure why. Can I get around this problem and still have framed text? Julian \setupframed[location=middle] \startframedtext[width=.77

Re: [NTG-context] footnote not appearing

2021-07-28 Thread Hans Hagen via ntg-context
why. Can I get around this problem and still have framed text? Julian \setupframed[location=middle] \startframedtext[width=.77\makeupwidth,corner=round] The poems of St John of the Cross have been important for me in recent years. This is John’s prayer from a verse in his Spiritual Canticle

Re: [NTG-context] footnote not appearing

2021-07-27 Thread jbf via ntg-context
and still have framed text? Julian \setupframed[location=middle] \startframedtext[width=.77\makeupwidth,corner=round] The poems of St John of the Cross have been important for me in recent years. This is John’s prayer from a verse in his Spiritual Canticle:\footnote{John of the Cross, {\em

Re: [NTG-context] footnote not appearing

2021-07-27 Thread Henning Hraban Ramm via ntg-context
ave framed text? > > Julian > > \setupframed[location=middle] > > \startframedtext[width=.77\makeupwidth,corner=round] > The poems of St John of the Cross have been important for me in recent years. > This is John’s prayer from a verse in his Spiritual Canticle:\footno

[NTG-context] footnote not appearing

2021-07-26 Thread jbf via ntg-context
Is there any reason why the following MWE does not produce the footnote at the bottom of the page? It seems like the use of framedtext is preventing it, but am not sure why. Can I get around this problem and still have framed text? Julian \setupframed[location=middle] \startframedtext[width

[NTG-context] Using \defineoverlay for a framed text

2020-06-16 Thread Willi Egger
]{\useMPgraphic{Markings}} \setupframed[background=Marks] \setupframedtexts [frame=on, background=Marks] \starttext \framedtext{Hello World!} \blank \framed{Hello World!} \stoptext What is wrong with this code? Kind regards Willi

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Fabrice Couvreur
> the > >>> rounded corners to put the key corner = round, but it does not work. > >> > >> 1. To create a new framed-instance you need \defineframe, \setupframed > isn't > >> enough to set the values. > >> > >> I guess you assumed th

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
, but it does not work. 1. To create a new framed-instance you need \defineframe, \setupframed isn't enough to set the values. I guess you assumed this works similar to xtables but this mechanism sets a few values to assure \setupxtable is enough in certain cases but even here you need \definextable

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Rudolf Bahr
rk. > > 1. To create a new framed-instance you need \defineframe, \setupframed isn't > enough to set the values. > >I guess you assumed this works similar to xtables but this mechanism sets > a few values to assure \setupxtable is enough in certain cases but even here &g

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 19.04.2020 um 22:55: Hi, I try to reproduce the figure as faithfully as possible. I tried for the rounded corners to put the key corner = round, but it does not work. 1. To create a new framed-instance you need \defineframe, \setupframed isn't enough to set

[NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-19 Thread Fabrice Couvreur
Hi, I try to reproduce the figure as faithfully as possible. I tried for the rounded corners to put the key corner = round, but it does not work. Thanks for your help. Fabrice \usecolors[xwi] \definecolor [prune] [r=1.29,g=.20,b=.83] \starttext \setupframed[frameletter][corner=round,align=normal

Re: [NTG-context] offset for background overlay

2020-04-11 Thread Wolfgang Schuster
\stoptext @both: \setupoverlay[hoffset=...,voffset=...]? \setupframed[backgroundhoffset=...,backgroundvoffset=...] (\bTD inherits from \framed)? Or maybe a method in MP to set the bounding box of the resulting overlay? setbounds in combination with leftenlarged, topenlarged etc. \setupframed has

Re: [NTG-context] offset for background overlay

2020-04-11 Thread mf
. @both: \setupoverlay[hoffset=...,voffset=...]? \setupframed[backgroundhoffset=...,backgroundvoffset=...] (\bTD inherits from \framed)? Or maybe a method in MP to set the bounding box of the resulting overlay? \setupframed has already a backgroundoffset option, whose value can be: - a DIMENSION

[NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
tuppapersize[A4, landscape] \setuplayout[location=middle, width=27.5cm, height=18cm, backspace=1cm,header=4cm] \setuppagenumbering[state=stop] \setupcaptions[location=none] \setupbackgrounds[header][text][background={Logos}, state=repeat] \setupnumbering [location=] \setupframed[offset=none] \

[NTG-context] Changing default rule thickness (globally)

2020-03-25 Thread Benjamin Buchmuller
=...] \setupchemical[rulethickness=...] \setupeffect[rulethickness=...] \setupfillinlines[rulethickness=...] \setupfillinrules[rulethickness=...] \setupframed[rulethickness=...] \setuplinefillers[rulethickness=...] \setupmarginrules[rulethickness=...] \setupmixedcolumns[rulethickness=...] \setupnote

Re: [NTG-context] line numbering within frame

2020-01-25 Thread Wolfgang Schuster
\define... the new instance inherits most of its values from a parent instance. You can overwrite individual values for your new instance but all other values are taken from the parent. begin example \setupframed[foregroundstyle=bold] \defineframed[customframe][framecolor=red] \starttext \fr

Re: [NTG-context] poem as a sidefloat

2019-09-25 Thread Henning Hraban Ramm
ught I don’t need to define or setup my >> own float. >> >> \setupfloat inherits from \setupframed, but the parameters width, style and >> background(color) don’t work. >> Aren’t they supposed to work in \startplacefloat? >> >> How can I suppress the c

Re: [NTG-context] poem as a sidefloat

2019-09-25 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 25.09.2019 um 19:35: Hi, I’d like to have a small poem beside my text. My approach doesn’t work, with or without \framed: Since I need this only once, I thought I don’t need to define or setup my own float. \setupfloat inherits from \setupframed

[NTG-context] poem as a sidefloat

2019-09-25 Thread Henning Hraban Ramm
Hi, I’d like to have a small poem beside my text. My approach doesn’t work, with or without \framed: Since I need this only once, I thought I don’t need to define or setup my own float. \setupfloat inherits from \setupframed, but the parameters width, style and background(color) don’t work

[NTG-context] Bugs in \framed

2019-09-06 Thread Henning Hraban Ramm
In ConTeXt ver: 2019.08.24 22:42 MKIV beta fmt: 2019.9.6 LuaTeX, Version 1.10.1 (i.e. today’s beta) * framecorner doesn’t work any more (all the same) * backgroundoffset is shifted downwards (used to be centered, but is wrong for a while) examples: \starttext {\setupframed[foregroundstyle

[NTG-context] Bug or not?

2019-05-16 Thread Hans van der Meer
the last two floats where [background=] changes the game.I wonder, is this intended behaviour? Or should one expect something different?\starttextTesting figure captions with \tex{setupframed[background="">\setupframed[background="">\placefigure[][]{\tex{setupframed[backgroun

Re: [NTG-context] Small pages and large framed texts

2019-03-21 Thread Willi Egger
poffset=10pt, > leftoffset=10pt, > location=paragraph, > frame=on] > > \startsetups [xml:setups:start] > \starttextbackground [SetupsParameter] > \stopsetups > > \startsetups [xml:setups:stop] > \stoptextbackground > \stopsetups > > \starttext > > \start

Re: [NTG-context] Small pages and large framed texts

2019-03-20 Thread Wolfgang Schuster
=paragraph, frame=on] \startsetups [xml:setups:start] \starttextbackground [SetupsParameter] \stopsetups \startsetups [xml:setups:stop] \stoptextbackground \stopsetups \starttext \startsection[title={Short Version of the Command}] \cmdshortsetup [setupframed] \cmdshortsetup

Re: [NTG-context] Small pages and large framed texts

2019-03-20 Thread Willi Egger
, that the framed pieces break over the page. \usemodule[x][set-11] \loadsetups[i-context] \setuppapersize[A6][A6] \setupbodyfont[pagella,rm,10pt] \starttext \startsection[title=hSort Version of the Command] \shortsetup{setupframed} \shortsetup{setupinteraction} \stopsection

Re: [NTG-context] commands manual (setup-en.pdf) organized by topic

2018-12-06 Thread Hans Hagen
command, say \defineframed \setupframed ... the concepts are the same (only a few commands for practical reasons behave different) And lately I often see here that setups are named like "foo:bar". What is the meaning of the double colon? variants (same command, different options) or

Re: [NTG-context] what defines the font size?

2018-10-18 Thread Hans Hagen
} \framed{\tfxx M} \framed{\tfd M} \stoptext where all the frames had the same size, but that’s only because you hardcoded it earlier in the file: \setupframed [offset=none, framecolor=red, rulethickness=0.01pt, width=12pt

Re: [NTG-context] what defines the font size?

2018-10-18 Thread Arthur Reutenauer
d M} \stoptext where all the frames had the same size, but that’s only because you hardcoded it earlier in the file: \setupframed [offset=none, framecolor=red, rulethickness=0.01pt, width=12pt, height=12pt] Notice how the width and hei

Re: [NTG-context] what defines the font size?

2018-10-17 Thread Arthur Reutenauer
glyph in the font has that length. It’s really a tautology, actually: if you take a font at size, say, 12pt, then the em space is 12pt wide. That’s the definition (at least in the TeX world). It’s less clear what you’re trying to do next: > \setupframed >

Re: [NTG-context] what defines the font size?

2018-10-16 Thread Pablo Rodriguez
out its size. Many thanks for your clear statement, Ulrike. Thomas Pinney explains why this might happen: http://www.thomasphinney.com/2011/03/point-size/. I cannot claim that I understand his explanation, but it seems that there is something about the em quad, which might be someth

Re: [NTG-context] general suggestion for ConTeXt documentation

2018-08-08 Thread Pablo Rodriguez
t;distance" in \setupnote does. > (Sometimes, when confronted with such information, I just play > around a bit with changing parameters and see what happens: sometimes > I discover the meanings, sometimes I don’t.) Lucky you, I have to play all the time to see what happens. I only l

Re: [NTG-context] general suggestion for ConTeXt documentation (was: footnote and endnote markers...)

2018-08-08 Thread Robert Zydenbos
mation, I just play around a bit with changing parameters and see what happens: sometimes I discover the meanings, sometimes I don’t.) ‘\setupnote’ inherits from ‘\setupframed’. There one finds … profile = NAME empty = yes no … and similar questions arise: “what kind of profile?”, “what is

Re: [NTG-context] Table generator : Issues with borders and rotated cells

2018-06-27 Thread Wolfgang Schuster
{mp} {\useMPgraphic{mp_frame_right}} \installtopframerenderer{mp} {\useMPgraphic{mp_frame_top}} \installbottomframerenderer {mp} {\useMPgraphic{mp_frame_bottom}} \setupframed [ leftframecolor=\framedparameter{framecolor}, rightframecolor=\framedparameter{framecolor}, topfr

Re: [NTG-context] Fwd: Adding a parameter to a module

2018-03-23 Thread Henri Menke
t;> >> \roottitleparameter{foo} >> >> \titleparameter{foo} > > > What is there difference between these two \roottitleparameter{foo} and > \titleparameter{foo}? I searched through the source, but I'm still getting > acquainted with TeX and ConTeXt. :-D \framed[frame=off]{

Re: [NTG-context] Framed & before/after

2018-03-21 Thread Pablo Rodriguez
amed inherits from \setupframed (as explained in tex/texmf-context/tex/context/interface/mkiv/i-context.pdf). \setupframedtext (which I don’t think is exactly the same as \setupframed) inherits from \setupplacement (which contains both keys before and after). That being said, I don’t know why before an

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread r . ermers
gt;> >> \startxmlsetups xlm:contact >> \setlayer[AddressBg] {\framed[width=55mm,height=30mm, >> align=right,background=color, >> backgroundcolor=lightgray]{\ss\xmlall{#1}{/address}}} >> \strut >> ... >> \stopxmlsetups >> >> This works (see pd

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread Schmitz Thomas A.
t,background=color, > backgroundcolor=lightgray]{\ss\xmlall{#1}{/address}}} > \strut > ... > \stopxmlsetups > > This works (see pdf), but there are probably other and better ways. > Have a look at the framed/setupframed command; they have foregroundstyle and foregroundcolor keys; that

Re: [NTG-context] problem with \startcolumns[distance=0pt]

2016-10-06 Thread Michael Witten
mkiv/page-mul.mkiv After a not-so-cursory review, it seems to me that the problem is a result of [probably erroneous] references [in various calculations] to the `offset' parameter, which is presumably a vestigial growth inherited from `\setupframed'. Fortunately, meddling by this `offset' parameter

Re: [NTG-context] (no subject)

2016-07-18 Thread Fabrice Couvreur
ced on the same baseline as the letter > A, in the example, then you have to tell ConTeXt to place a margin material > right after A, as in > > > A\\ \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > B \\ C > > and you can play with setupframed

Re: [NTG-context] (no subject)

2016-07-17 Thread Otared Kavian
with setupframed by choosing an option « low » or » high » according to your desire. Best regards: Otared > On 16 Jul 2016, at 23:23, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > Hi Kavian, > Okay, but I do not understand why the top of the framed can not

Re: [NTG-context] (no subject)

2016-07-16 Thread Fabrice Couvreur
etupfloat >[recipe] >[default={rightmargin,none,high}] > > \setupframed > [frame=on, >width=\rightmarginwidth, >align=justify, >offset=2pt, >location=low, >rulethickness=1pt, >framecolor=darkred, >corner=00] > > \showgrid > \show

Re: [NTG-context] (no subject)

2016-07-16 Thread Otared Kavian
] [figure] \setupfloat [recipe] [default={rightmargin,none,high}] \setupframed [frame=on, width=\rightmarginwidth, align=justify, offset=2pt, location=low, rulethickness=1pt, framecolor=darkred, corner=00] \showgrid \showframe \starttext A\\ B \\ C \placerecipe

Re: [NTG-context] (no subject)

2016-07-15 Thread Fabrice Couvreur
[recipe] [figure] \setupfloat [recipe] [default={rightmargin,none}] \setupframed [frame=on, width=\rightmarginwidth, align=justify, offset=2pt, location=low, rulethickness=1pt, framecolor=darkred, corner=00] \starttext \showframe A\\A\\A \placerecipe{}{\framed{La

Re: [NTG-context] (no subject)

2016-07-15 Thread Otared Kavian
xt in the boxes ? > Fabrice > > > \useMPlibrary [dum] > > \setuplayout > [width=13cm, >rightmargin=5cm] > > \setupbodyfont[pagella,11pt] > > \definefloat >[recipe] >[figure] > > \setupfloat >[recipe]

Re: [NTG-context] (no subject)

2016-07-15 Thread Fabrice Couvreur
, rightmargin=5cm] \setupbodyfont[pagella,11pt] \definefloat [recipe] [figure] \setupfloat [recipe] [default={rightmargin,none}] \setupframed [frame=on, width=\rightmarginwidth, align=flushleft, location=low, rulethickness=1pt, framecolor=blue, corner=00] \starttext

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
on right of the page. The numbering of the > chapters is fixed at 0, why ? > thank you, > Fabrice > > > ​ > \unexpanded\def\HeadTitle#1#2% > {\vbox \bgroup >\setupframed[offset=0.5em,frame=off] >\inframed[width=fit,align=right]{#1}% >\inframe

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
I wish the chapter title on right of the page. The numbering of the chapters is fixed at 0, why ? thank you, Fabrice ​ \unexpanded\def\HeadTitle#1#2% {\vbox \bgroup \setupframed[offset=0.5em,frame=off] \inframed[width=fit,align=right]{#1}% \inframed[width=fit,align=right]{#2

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
Thank you Hans, the code would be : \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=0.5em,frame=off] \inframed[width=fit,align=left,frame=off]{\darkred#1}% \inframed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Hans Hagen
On 7/6/2016 1:37 PM, Fabrice Couvreur wrote: Hello, In the manual, there is the macro below. Why theword "Matrice" is not on the same baseline as the number "1" ? thank you, Fabrice \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \setupframed[height=1c

[NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
Hello, In the manual, there is the macro below. Why the word "Matrice" is not on the same baseline as the number "1" ? thank you, Fabrice \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \setupframed[height=1cm,offset=0.5em,frame=on] \framed[width=fit,al

[NTG-context] Reviewing old messages

2016-05-16 Thread Meer, Hans van der
ut:\verbatim{\vbox{\hbox{abc}\hbox{xyz}}}\crlf \vbox{\hbox{abc}\hbox{xyz}}\blank \setupframed[width=0.7\textwidth] \leftaligned{these are in the command reference}\blank input:\verbatim{\framed[align=OPTION]{\hbox{abc}\hbox{xyz}}}\blank inner:\crlf \framed[align=inner]{\hbox{abc}\hbox{xyz}}\bla

Re: [NTG-context] Is there “toffset” option for \setupbackgrounds in context

2016-02-26 Thread Wolfgang Schuster
Bou Salim <mailto:salimcol...@gmail.com> 26. Februar 2016 um 12:44 I'm trying to learn `context`, and I'm satisfied with their capacities. I read in contextgarden <http://wiki.contextgarden.net/Command/setupbackgrounds> that options of `\setupbackgrounds` inherit from `\setupframe

[NTG-context] Is there “toffset” option for \setupbackgrounds in context

2016-02-26 Thread Bou Salim
I'm trying to learn `context`, and I'm satisfied with their capacities. I read in contextgarden <http://wiki.contextgarden.net/Command/setupbackgrounds> that options of `\setupbackgrounds` inherit from `\setupframed`, but if I setup `toffset=5mm` for `\setupbackgrounds[text][text]

[NTG-context] footnote coloring

2015-09-06 Thread dr. Hans van der Meer
in the text is the only element that gets colored because of the [textcolor=red] parameter setting.In the command reference it is [numbercommand=\rednumber]. Shouldn't that have made the color of the footnotenumber below?Since \setupfootnotes inherits from setupframed I expected [foregroundcolor=red

Re: [NTG-context] footnote coloring

2015-09-06 Thread Pablo Rodriguez
ber]. Shouldn't > that have made the color of the footnotenumber below? > > Since \setupfootnotes inherits from setupframed I expected > [foregroundcolor=red] to do the trick for the content of the footnote, > but it doesn't. > > How to? Hi Hans, this setup works fine in MkIV:

[NTG-context] footnotes in floating tables

2015-07-19 Thread Henry House
={\blank[0cm]},spaceafter=2ex,spacebefore=1ex,headstyle=\sc] \setupTABLE[frame=off,offset=0ex] \setupTABLE[c][distance=0.6em] \def\tableheadrulethickness{1.0pt} \defineframed[footnoteframed]\setupframed[footnoteframed][width=\hsize,frame=off,align=right,top=\hbox\bgroup,bottom=\egroup

Re: [NTG-context] What is a better way to do this macro?

2015-07-17 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 16 Jul 2015 22:35:45 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Use the foregroundstyle key to change the interlinespace. Works like a charm. Question: Should the wiki page be edited: http://wiki.contextgarden.net/Command/setupframed It has the equivalent

Re: [NTG-context] What is a better way to do this macro?

2015-07-17 Thread Wolfgang Schuster
Idris Samawi Hamid ادريس سماوي حامد mailto:idris.ha...@colostate.edu 17. Juli 2015 19:56 On Thu, 16 Jul 2015 22:35:45 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Works like a charm. Question: Should the wiki page be edited: http://wiki.contextgarden.net/Command/setupframed

Re: [NTG-context] What is a better way to do this macro?

2015-07-17 Thread Idris Samawi Hamid ادريس سماوي حامد
. Question: Should the wiki page be edited: http://wiki.contextgarden.net/Command/setupframed It has the equivalent of foregroundstyle = name Shouldn't that be changed to foregroundstyle = command Originally I looked for keys mapped to command so I tried bottom and top because and those are the only

Re: [NTG-context] How to implement a head like this?

2015-07-04 Thread 土卜皿
in titles http://pmrb.free.fr/contextref.pdf , there is a snippet, which seemly helps me, the following code: \setupcolors[state=start]\setuppagenumbering[location=footer, right]\unexpanded\def\HeadTitle#1#2%{\hbox to \hsize \bgroup\hfill\setupframed[height=5cm,offset=.5em,frame=off,backgroundcolor

[NTG-context] creating multiline paragraph in \tabulate

2015-05-19 Thread John Culleton
Classifications} \setupframed[framecorner=rectanglular,background=none] \tfx \placetable[force,none]{} \starttabulate[|lw(.25\textwidth)|lpw(.75\textwidth)|] \HL ... \NC Housewares \NC Gourmet pots and pans and other cookware, with some impulse\NC\NR \NC \null \NC and companion food items \NC\NR ... \HL

Re: [NTG-context] creating multiline paragraph in \tabulate

2015-05-19 Thread Aditya Mahajan
{\bf Figure 2.3: Specialty Food Store Classifications} \setupframed[framecorner=rectanglular,background=none] \tfx \placetable[force,none]{} \starttabulate[|lw(.25\textwidth)|lpw(.75\textwidth)|] Simply use p(.75\textwidth) \setupcaption[table][location=top] \starttext \startplacetable

Re: [NTG-context] slanting an intermezzo.

2015-03-26 Thread Otared Kavian
\input knuth.tex \stopframedtext} \input knuth.tex \input knuth.tex \input knuth.tex \stoptext end tilted-framed.tex Best regards: OK On 25 Mar 2015, at 22:36, John Culleton j...@wexfordpress.com wrote: \starttext \setupframed[background=screen,framecorner=rectangular

[NTG-context] slanting an intermezzo.

2015-03-25 Thread John Culleton
do I cause it to lean to the left about 3 degrees? -- \starttext \setupframed[background=screen,framecorner=rectangular,backgroundscreen=0.70] \placeintermezzo[right,none]{} \startframedtext[width=3in] \centerline {\bf RECIPE FOR SUCCESS

[NTG-context] setting columns in a text frame.

2015-03-22 Thread John Culleton
: --- \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \starttext \placeintermezzo[center,none]{} \starttext \startframedtext[] [width=\hsize] \centerline{\ss\tfb Interest in Green, Organic, and Local

Re: [NTG-context] setting columns in a text frame.

2015-03-22 Thread Wolfgang Schuster
is blank. here is my code: --- \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \starttext \placeintermezzo[center,none]{} \starttext

[NTG-context] Word wrap around framed text.

2015-03-19 Thread John Culleton
costs of approximately \$35,000 to \$100,000 and more each year for the first three to five years. This includes production, packaging, labeling, advertising, and promotion of one product. It does {\it not} \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70

[NTG-context] PLacing framed text.

2015-03-18 Thread John Culleton
I know how to place an intermezzo, e.g. \starttext \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \definefloat[intermezzo]{ } \placeintermezzo[right]{} \startframedtext[width=3.2in

Re: [NTG-context] Get rid of caption on an intermezzo.

2015-03-04 Thread John Culleton
a title like intermezzo 1 at the bottom. How do I get rid of this title? For the curious here is my code segment to date: \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em

Re: [NTG-context] Problem with framed text.--addendum

2015-02-25 Thread John Culleton
be a comma after 0.1. With respect, I don't think so. Commas separate parameters. the last 0.1 is properly followed by a ]. Hi John, this should work: \setupframed[framecorner=round, frameradius=0.1em, background=screen, backgroundscreen=0.70, backgroundcorner=round

[NTG-context] Get rid of caption on an intermezzo.

2015-02-25 Thread John Culleton
here is my code segment to date: \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \definefloat[intermezzo]{ } \kern 5em\placeintermezzo[right]{} \startframedtext[width=3.2in

Re: [NTG-context] Problem with framed text.

2015-02-22 Thread John Culleton
On Sat, 21 Feb 2015 14:16:31 -0500 Aditya Mahajan adit...@umich.edu wrote: On Feb 21, 2015, at 12:35 PM, John Culleton j...@wexfordpress.com wrote: In several palces I want to set up framed text with a gray background and rounded corners. Here is my \setupframed description

Re: [NTG-context] Problem with framed text.

2015-02-22 Thread Pablo Rodriguez
On 02/22/2015 01:55 PM, John Culleton wrote: On Sat, 21 Feb 2015 14:16:31 -0500 Aditya Mahajan wrote: [...] There should be a comma after 0.1. With respect, I don't think so. Commas separate parameters. the last 0.1 is properly followed by a ]. Hi John, this should work: \setupframed

Re: [NTG-context] Problem with framed text.

2015-02-22 Thread John Culleton
. the last 0.1 is properly followed by a ]. Hi John, this should work: \setupframed[framecorner=round, frameradius=0.1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=0.1em, corner=round, radius=0.1em] Radius, framedradius and backgroundradius

Re: [NTG-context] Problem with framed text.

2015-02-22 Thread Wolfgang Schuster
be a comma after 0.1. With respect, I don't think so. Commas separate parameters. the last 0.1 is properly followed by a ]. Hi John, this should work: \setupframed[framecorner=round, frameradius=0.1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius

Re: [NTG-context] Problem with framed text.

2015-02-21 Thread Aditya Mahajan
On Feb 21, 2015, at 12:35 PM, John Culleton j...@wexfordpress.com wrote: In several palces I want to set up framed text with a gray background and rounded corners. Here is my \setupframed description: \setupframed[ framecorner=round, frameradius=0.1, background=screen

Re: [NTG-context] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Wolfgang Schuster
) using the offset or perhaps backgroundoffset options of \setupframed). Use text backgrounds. \definetextbackground [SummaryBackground] [frame=off, background=color, backgroundcolor=gray] \definehead[summary][section] \setuphead [summary] [before=, beforesection={\blank

Re: [NTG-context] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Rob Heusdens
it (above,below,left,right) using the offset or perhaps backgroundoffset options of \setupframed). Greetings, Rob ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

[NTG-context] framed and placefigure

2014-10-26 Thread DesdeChaves
why this happens: After a specification of the foregroundcolor the figures are behind a framed color. \setupframed[offset=2mm, corner=round, background=color, backgroundcolor=blue, foregroundcolor=yellow, frame=off, strut=no, align=normal, location=top

Re: [NTG-context] Trying to emulate CSS object-fit behaviour...

2014-10-16 Thread Hans Hagen
,width=277mm,distance=10mm,after={\blank[10mm]}] \setupframed[offset=1.0mm,background=color,rulethickness=0.25pt,backgroundcolor=white,framecolor=lightgray] \starttext \startsection [title={title text}] \placefigure[here][nonumber] {\vspace more text} {\startcombination

[NTG-context] Trying to emulate CSS object-fit behaviour...

2014-10-15 Thread Stuart Hungerford
]}] \setupframed[offset=1.0mm,background=color,rulethickness=0.25pt,backgroundcolor=white,framecolor=lightgray] \starttext \startsection [title={title text}] \placefigure[here][nonumber] {\vspace more text} {\startcombination {\framed[] {\externalfigure[1.pdf

Re: [NTG-context] Using TABLE in a definition etc.

2014-08-17 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear Knights, Solved (I think): \def\Glyphbox#1#2#3{% \setupframed[frame=off,align=middle,offfset=none] \framed{\cbox{ \bTABLE[align=middle] \bTR \bTD \csname gulistan#1\endcsname \fontchar{#2} \eTD \eTR \bTR \bTD \fontchar{#2} \eTD \eTR \bTR \bTD #1 \eTD \eTR \bTR \bTD #3 \eTD

Re: [NTG-context] Using TABLE in a definition etc.

2014-08-17 Thread Wolfgang Schuster
Am 17.08.2014 um 18:59 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: Dear Knights, Solved (I think): \def\Glyphbox#1#2#3{% \setupframed[frame=off,align=middle,offfset=none] \framed{\cbox{ \bTABLE[align=middle] \bTR \bTD \csname gulistan#1

  1   2   3   >